import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/tabbar/Home.vue'
import Member from './views/tabbar/Member.vue'
import ShopCar from './views/tabbar/ShopCar.vue'
import Search from './views/tabbar/Search.vue'
import NewsList from './views/news/NewsList.vue'
import PhotoList from './views/photos/PhotoList.vue'
import PhotoInfo from './views/photos/Info.vue'
Vue.use(Router)

export default new Router({
    routes: [
        { path: '/', redirect: '/home' },
        { path: '/home', component: Home },
        { path: '/member', component: Member },
        { path: '/shopcar', component: ShopCar },
        { path: '/search', component: Search },
        { path: '/news', component: NewsList },
        { path: '/photo/list', component: PhotoList },
        { path: '/photo/info/:id', component: PhotoInfo }
    ]
})